package com.deli.service.impl;

import com.deli.entity.SysRoleUser;
import com.deli.mapper.BaseMapper;
import com.deli.mapper.SysRoleUserMapper;
import com.deli.service.RoleUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhuxiaomeng
 * @date 2017/12/21.
 * @email 154040976@qq.com
 */
@Service
public class RoleUserServiceImpl extends BaseServiceImpl<SysRoleUser, String> implements
        RoleUserService {

    @Autowired
    private SysRoleUserMapper sysRoleUserMapper;

    @Override
    public BaseMapper<SysRoleUser, String> getMappser() {
        return sysRoleUserMapper;
    }

    @Override
    public int deleteByPrimaryKey(SysRoleUser sysRoleUser) {
        return sysRoleUserMapper.deleteByPrimaryKey(sysRoleUser);
    }

    @Override
    public int selectCountByCondition(SysRoleUser sysRoleUser) {
        return sysRoleUserMapper.selectCountByCondition(sysRoleUser);
    }

    @Override
    public List<SysRoleUser> selectByCondition(SysRoleUser sysRoleUser) {
        return sysRoleUserMapper.selectByCondition(sysRoleUser);
    }
}
